<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>案例详情</title>


    <!-- Expand styles -->
    <link href="../css/app/app.css" rel="stylesheet">
    <link href="../css/app/default.css" rel="stylesheet">
    <link href="../css/mui/mui.css" rel="stylesheet">
    <link href="../css/mui/mui.picker.min.css" rel="stylesheet" />

</head>

<body>

    <!-- header -->
    <div class="margin-b-60">
        <div class="display-flex justify-content-between align-items-center details-box">
            <span>培训类型</span>
            <span id="tranType"></span>
        </div>
        <div class="display-flex justify-content-between align-items-center details-box">
            <span>培训主题</span>
            <span id="title"></span>
        </div>
        <div class="display-flex justify-content-between align-items-center details-box">
            <span>培训时间</span>
            <span id="tranTime"></span>
        </div>
        <div class="display-flex justify-content-between align-items-center details-box">
            <span>培训地点</span>
            <span id="tranAddressShow"></span>
        </div>
        <div class="display-flex justify-content-between align-items-center details-box">
            <span>培训人数</span>
            <span id="tranPeopleNum"></span>
        </div>
        <div class="display-flex justify-content-between align-items-center details-box">
            <span>培训老师</span>
            <span id="teacher"></span>
        </div>
        <div class="display-flex justify-content-between align-items-center details-box">
            <span>培训主办方</span>
            <span id="tranSponsors"></span>
        </div>
        <div class="display-flex justify-content-between align-items-center details-box">
            <span>培训机构名称</span>
            <span id="userName"></span>
        </div>
    </div>
   

    <script src="../js/dsbridge.js"></script>
    <script src="../js/jquery.js"></script>
    <script src="../js/mui/mui.js"></script>
    <script src="../js/mui/mui.picker.min.js"></script>
    <script src="../js/layer.js"></script>
    <script src="../js/app/app-base.js"></script>
    <script src="../js/app/app-url.js"></script>
    <script src="../js/app/app-ajax.js"></script>
    <script>
        var id = localStorage.getItem("success-case-detail-id");
        $(document).ready(function(){
            var data = {
                id : id
            }
            getServerData(url_trandemandmgr_queryDetail, data);
        })

        function getServerDataSuccess(url, data) {
            switch (url) {
                case url_trandemandmgr_queryDetail:
                    var data = data.data;
                    if(data != null){
                        $("#tranType").text(data.tranType.name);
                        $("#title").text(data.title);
                        $("#tranTime").text(data.tranBeginTime.substring(0,16)+"-"+data.tranEndTime.substring(0,16));
                        $("#tranAddressShow").text(data.tranAddressShow);
                        $("#tranPeopleNum").text(data.tranPeopleNum+"人");
                        $("#teacher").text(data.teacher);
                        $("#tranSponsors").text(data.tranSponsors);
                        $("#userName").text(data.userName);
                    }
                    break;
            }
        }

        
    </script>

</body>

</html>